﻿#ifndef MEASURE_CRICLE_H
#define MEASURE_CRICLE_H
#include "halconcpp/HalconCpp.h"
#include "qthread.h"
#include "Common/common.h"
using namespace HalconCpp;


struct M_C_PLACE
{
    HalconCpp::HTuple x1 = 0;
    HalconCpp::HTuple y1 = 0;
    HalconCpp::HTuple x2 = 0;
    HalconCpp::HTuple y2 = 0;
    HalconCpp::HTuple hvCCDHandle;
};



class Measure_Cricle:public QThread
{
    Q_OBJECT
public:
    Measure_Cricle();
	
    int M_Cricle(HObject img,bool saveImg,HTuple &In_Round,HTuple &Out_Round,HTuple &In_Len,HTuple &Out_Len,HObject &Out_Img);
    int M_Cricle_Index=0;
public:
    Cam1 para1;
    HTuple Distance;
    bool InRoundFlag;
    bool OutRoundFlag;
    bool CricleFlag;
    bool InlenFlag;
    bool OutlenFlag;
    int m_nSaveOkImage = 0;  // 1 OK and NG  0  NG


    M_C_PLACE m_place;
};



#endif // MEASURE_CRICLE_H
